package cn.home.sysmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.sysmanagement.mapper.HomeTagMapper;
import cn.home.sysmanagement.domain.HomeTag;
import cn.home.sysmanagement.service.IHomeTagService;

/**
 * 健康标签Service业务层处理
 * 
 * @author homedoctor
 * @date 2025-04-09
 */
@Service
public class HomeTagServiceImpl implements IHomeTagService 
{
    @Autowired
    private HomeTagMapper homeTagMapper;

    /**
     * 查询健康标签
     * 
     * @param id 健康标签主键
     * @return 健康标签
     */
    @Override
    public HomeTag selectHomeTagById(Long id)
    {
        return homeTagMapper.selectHomeTagById(id);
    }

    /**
     * 查询健康标签列表
     * 
     * @param homeTag 健康标签
     * @return 健康标签
     */
    @Override
    public List<HomeTag> selectHomeTagList(HomeTag homeTag)
    {
        return homeTagMapper.selectHomeTagList(homeTag);
    }

    /**
     * 新增健康标签
     * 
     * @param homeTag 健康标签
     * @return 结果
     */
    @Override
    public int insertHomeTag(HomeTag homeTag)
    {
        return homeTagMapper.insertHomeTag(homeTag);
    }

    /**
     * 修改健康标签
     * 
     * @param homeTag 健康标签
     * @return 结果
     */
    @Override
    public int updateHomeTag(HomeTag homeTag)
    {
        return homeTagMapper.updateHomeTag(homeTag);
    }

    /**
     * 批量删除健康标签
     * 
     * @param ids 需要删除的健康标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeTagByIds(Long[] ids)
    {
        return homeTagMapper.deleteHomeTagByIds(ids);
    }

    /**
     * 删除健康标签信息
     * 
     * @param id 健康标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeTagById(Long id)
    {
        return homeTagMapper.deleteHomeTagById(id);
    }

    @Override
    public List<HomeTag> selectHomeTagByDoctorId(Long id) {

        return homeTagMapper.selectHomeTagByDoctorId(id);
    }
}
